Skip to main content

Spring Initializer no longer supports Java8, that is, SpringBoot2.x project initialization

Spring Initializer no longer supports Java8

Problem Description

1.png

We can see that the Java version selection module in IDEA's built-in Spring Initializer no longer supports 1.8. Similarly, the official website no longer supports it.

2.png

solution

Upgrade java version

Spring Boot 3.x requires a minimum Java version of 17, and the latest SpringBoot version already requires Java21. Therefore, you can upgrade the Java version and use SpringBoot3.X

3.png 4.png

You might as well click on version 3.0 to take a look

5.png 6.png

Spring Boot 3.0 requires Java 17 as a minimum version. If you are currently using Java 8 or Java 11, you'll need to upgrade your JDK before you can develop Spring Boot 3.0 applications. Spring Boot 3.0 also works well, and has been tested with JDK 19.

Server URLReplace the mirror address in IDEA's built-in Spring Initializer

If you really use SpringBoot2.X version, you can change the mirror address. Mirror address: https://start.aliyun.com/

The operation is as follows.

7.png

At this time we can see that the Java8 version is selected.

8.png